import request from "../utils/request";

// 获取轮播图数据
export function getBannerList () { // 传参的时候在写方法
  return request({
    url: '/banner/list',
    method: "GET"
  })
}

// 添加轮播图数据
export function addBanner (params) {
  return request({
    url: '/banner/add',
    method: 'POST',
    data: params
  })
}

// 删除轮播图数据
export function deleteBanner (params) {
  console.log('999', params)
  return request({
    url: '/banner/delete',
    method: 'GET',
    data: params
  })
}